﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QlrrPrintService.Common.Command
{
    public class PrintPaper
    {
        #region 变量

        private string _id;

        private int _mm_to_dpi = Common.MM_TO_DPI;

        public int Mm_to_dpi
        {
            get { return _mm_to_dpi; }
            set { _mm_to_dpi = value; }
        }
        /// <summary>
        /// 打印模板
        /// </summary>
        protected PrintPaperTemplate _printPaperTemplate;

        /// <summary>
        /// 文字
        /// </summary>
        protected List<PrintFont> _printFonts;

        /// <summary>
        /// 二维码
        /// </summary>
        protected List<BarCode> _printBarCodes;

        /// <summary>
        /// 模板id，当_printPaperTemplate为null时，可以通过该id在模板中查询
        /// </summary>
        private string _printPaperTemplateId;

        /// <summary>
        /// qr二维码
        /// </summary>
        protected List<QRCode> _printQRCodes;

        /// <summary>
        /// 区域翻转
        /// </summary>
        protected List<Reverse> _reverses;

        /// <summary>
        /// 线条
        /// </summary>
        protected List<Bar> _printLines;

        

        #endregion

        #region 属性

        public List<Bar> PriltLines
        {
            get { return _printLines; }
            set { _printLines = value; }
        }

        public List<QRCode> PrintQRCodes
        {
            get { return _printQRCodes; }
            set { _printQRCodes = value; }
        }

        public string Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public string PrintPaperTemplateId
        {
            get { return _printPaperTemplateId; }
            set { _printPaperTemplateId = value; }
        }

        public List<BarCode> PrintBarCodes
        {
            get { return _printBarCodes; }
            set { _printBarCodes = value; }
        }

        public List<PrintFont> PrintFonts
        {
            get { return _printFonts; }
            set { _printFonts = value; }
        }

        public PrintPaperTemplate PrintPaperTemplate
        {
            get { return _printPaperTemplate; }
            set { _printPaperTemplate = value; }
        }
        #endregion

        #region 构造函数

        public PrintPaper() { }

        public PrintPaper(PrintPaperTemplate printPaperTemplate)
        {
            _printPaperTemplate = printPaperTemplate;
        }

        #endregion
    }
}
